shares = 1000 # 持有1000股
shares = shares + 500 # 买入500股
print(shares)  # 最新持股数量